    <script type="text/javascript"   >
		$(document).ready(function(){
			var validator = $("#addcout").validate({
		rules: {
			fname: "required",
			tel: "required",
			email: "required"
		},
		messages: {
			fname: "请输入您的用户名",
			tel: "请输入您的密码"
		},
		// the errorPlacement has to take the layout into account
		errorPlacement: function(error, element) {
			error.insertAfter(element.parent().find('label:first'));
		},
		// set new class to error-labels to indicate valid fields
		success: function(label) {
			// set &nbsp; as text for IE
			label.html("&nbsp;").addClass("ok");
		}
		});
                
                $('#delreposts').click(function(){
                  if(confirm('确定删除记录吗'))
                   {
                      $.post("<?=site_url("tlianmengs/deloldrespost");?>",{
                          tid:'c',type:'d'},
                      function(g){
                          if(g.status==1){
                              alert("删除成功");
                          }
                      });               
                   }
                });
				$('#delnopay').click(function(){
					
					if(confirm('确定删除所有待支付列表')){
							$.post("<?=site_url("tlianmengs/delnopay");?>",{
								tid:'c',type:'d'},
								function(g){
                          if(g.status==1){
                              alert("删除成功");
                          }
                         
								});
						}
					});
$('#delmonliwai').click(function(){
					
					if(confirm('确定删除一月前的例外信息')){
							$.post("<?=site_url("tlianmengs/delmonliwai");?>",{
								tid:'c',type:'d'},
								function(g){
                          if(g.status==1){
                              alert("删除成功");
                          }
                         
								});
						}
					});
			})
	</script>
    <!-- Page title -->
    <div id="pagetitle">站点设置
      <div id="titleedit"></div>
</div>
    <!-- End of Page title -->
    <!-- Page content -->
    <div id="page">
	  <p> </p>
      <table width="100%" height="206" border="0" cellpadding="0" cellspacing="2">
          <form id="addcout" action="<?php echo site_url('tlianmengs/save_siteset')?>" method="post">
          <tr align="center">
            <td width="14%" align="right"><label class="required" for="sitename">站点名称</label></td>
            <td width="28%" align="left"><input  name="sitename" type="text" id="sitename" 
            value="<?=$siteset["sitename"]?>" /></td>
            <td width="11%" align="right"><label class="required" for="tel">头像</label></td>
            <td width="47%" align="left">
            <input name="check_avatar" type="radio" id="check_avatar" value="1" checked="checked" />
              是
                <input name="check_avatar" type="radio" id="check_avatar" value="0" />
              否</td>
          </tr>
          <tr align="center">
            <td align="right">邀请分享</td>
            <td align="left"><input name="share_points" type="text" id="share_points" value="<?=$siteset["share_points"]?>" size="5" />
积分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="share_coins" type="text" id="share_coins" value="<?=$siteset["share_coins"]?>" size="5" />
粉币</td>
            <td align="right">关注交易有效期</td>
            <td align="left"><input name="follow_validity" type="text" id="follow_validity" value="<?=$siteset["follow_validity"]?>" size="5" />              &nbsp;</td>
          </tr>
          <tr align="center">
            <td align="right">成功邀请</td>
            <td align="left"><input name="invite_points" type="text" id="invite_points" value="<?=$siteset["invite_points"]?>" size="5" />
积分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="invite_coins" type="text" id="invite_coins" value="<?=$siteset["invite_coins"]?>" size="5" />
粉币</td>
             <td align="right">转发交易有效期</td>
            <td align="left"><input name="rt_validity" type="text" id="rt_validity" value="<?=$siteset["rt_validity"]?>" size="5" /></td>
          </tr>
         <tr align="center">
            <td align="right">每天签到</td>
            <td align="left"><input name="signin_points" type="text" id="signin_points" value="<?=$siteset["signin_points"]?>" size="5" />
积分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="signin_coins" type="text" id="signin_coins" value="<?=$siteset["signin_coins"]?>" size="5" />
粉币</td>
            <td align="right">禁止粉丝数低于</td>
            <td align="left"><input name="followersCount_login_limits" type="text" id="rt_limits_per_day" value="<?=$siteset["followersCount_login_limits"]?>" size="5" />
              登陆</td>           
          </tr>
          <tr align="center">
            <td align="right">每个关注</td>
            <td align="left"><input name="follow_points" type="text" id="follow_points" value="<?=$siteset["follow_points"]?>" size="5" />
              积分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <input name="follow_coins" type="text" id="follow_coins" value="<?=$siteset["follow_coins"]?>" size="5" />
粉币</td>
            <td align="right">新注册奖励积分</td>
            <td align="left"><input name="reg_give_points" type="text" id="reg_give_points" value="<?=$siteset["reg_give_points"]?>" size="5" /></td>
            </tr>
          <tr align="center">
            <td align="right">每个转发</td>
            <td align="left"><input name="rt_points" type="text" id="rt_points" value="<?=$siteset["rt_points"]?>" size="5" />
              积分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input name="rt_coins" type="text" id="rt_coins" value="<?=$siteset["rt_coins"]?>" size="5" />
            粉币</td>
            <td align="right">转让积分不低于 </td>
            <td align="left"><input name="give_points_limits" type="text" id="give_points_limits" value="<?=$siteset["give_points_limits"]?>" size="5" />
              分</td>
            </tr>
          <tr align="center">
            <td align="right">关注限制</td>
            <td align="left"><input name="follow_limits_per_hour" type="text" id="follow_limits_per_hour" value="<?=$siteset["follow_limits_per_hour"]?>" size="5" /> 
              /小时</td>
            <td align="right"><span class="required">最多邀请好友</span></td>
            <td align="left"><input name="invite_limits" type="text" id="invite_limits" value="<?=$siteset["invite_limits"]?>" size="5" /></td>
            </tr>
          <tr align="center">
            <td align="right">转发限制</td>
            <td align="left"><input name="rt_limits_per_hour" type="text" id="rt_limits_per_hour" value="<?=$siteset["rt_limits_per_hour"]?>" size="5" />
            /小时</td>
            <td align="right">授权返回地址</td>
            <td align="left"><input name="refresh_token" type="text" id="refresh_token" value="<?=$siteset["refresh_token"]?>" /></td>
            </tr>
         
          <tr align="center">
            <td align="right">关注限制</td>
            <td align="left"><input name="follow_limits_per_day" type="text" id="follow_limits_per_day" value="<?=$siteset["follow_limits_per_day"]?>" size="5" />
            /天</td>
            <td align="right">新浪WB_SKEY</td>
            <td align="left"><input name="client_secret" type="text" id="client_secret" value="<?=$siteset["client_secret"]?>" /></td>
            </tr>
          
        <tr align="center">
            <td align="right">转发限制</td>
            <td align="left"><input name="rt_limits_per_day" type="text" size="5"  id="rt_limits_per_day" value="<?=$siteset["rt_limits_per_day"]?>" size="5" />
          /天&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              转发限制粉币<input name="rt_limits_coins_day" type="text" id="follow_coins" value="<?=$siteset["rt_limits_coins_day"]?>" size="5" />/天    </td>
            <td align="right">新浪APP_I</td>
            <td align="left"><input name="client_id" type="text" id="client_id" value="<?=$siteset["client_id"]?>" /></td>
            </tr>
          <tr >
            <td align="right">公告</td>
            <td colspan="3"><textarea name="description" id="description" cols="80%" rows="5"><?=$siteset["description"]?></textarea></td>
          </tr>
          <tr>
            <td colspan="4" align="center">
                当前启动自动关注<?=$autofnum?>人    当前启动自动转发<?=$autornum?>人
            </td>
          </tr>
          <tr>
            <td colspan="4" align="center"><input type="submit" class="btn btn-green big" value="保存"/> 
                &nbsp;&nbsp; 
                <input type="reset" name="button" id="button" class="btn btn-green big" value="重置" />
                &nbsp;&nbsp; 
                <input type="button"  id="delreposts" class="btn btn-green big" value="一键删除发布15前的暂定转发" />
                <input type="button"  id="delnopay" class="btn btn-green big" value="一键删待支付列表" />
                <input type="button"  id="delmonliwai" class="btn btn-green big" value="一键删一月前列外" />
            <input type="hidden" name="verification" id="verification" value="<?=$verification?>" /></td>
          </tr>
          </form>
      </table>
    </div>
    